package com.bupt.kgplatform.controller.jinrui;


import com.bupt.kgplatform.entity.pojo.Result;
import com.bupt.kgplatform.entity.pojo.SearchLogInfo;
import com.bupt.kgplatform.service.BackstageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName:BackstageController
 * Package:com.example.blackjavaweb.controller
 * Description: 后台关系模块使用
 *
 * @Author QIQI_1999
 * @Creat 2023/9/18 16:07
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/backstage")
public class BackstageController {

    @Autowired
    private BackstageService backstageService;

    @PostMapping("/getlog")
    public Result searchLog(@RequestBody SearchLogInfo searchLogInfo){
        Object operateLogList = backstageService.searchLog(searchLogInfo);
        return Result.success(operateLogList);
    }
}
